package demo;

import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        Movie[] movies = new Movie[3];
        movies[0] = new Movie(1,"水门桥",38.9,9.8,"徐","吴京","12万人想看");
        movies[1] = new Movie(2,"出拳吧",39.0,7.8,"唐","田","19万人想看");
        movies[2] = new Movie(3,"月球陨落",42.9,7.9,"罗","李","22万人想看");
        Operation operation = new Operation(movies);
        Scanner scanner = new Scanner(System.in);
        while (true){
            System.out.println("请选择功能：1/2");
            System.out.println("1.显示 2，选择");
            int input = scanner.nextInt();
            switch (input){
                case 1:
                    operation.disPlay();
                    break;
                case 2:
                    System.out.println("输入查看的id");
                    int ch = scanner.nextInt();
                    operation.check(ch);
                    break;
                default:
                    System.out.println("请重新输入：");
            }
        }
    }
}
